package com.smartfarm.Zhuangshiqi;

import com.smartfarm.Gongchang.AgriculturalMachine;

abstract class MachineDecorator implements AgriculturalMachine {
    protected AgriculturalMachine decoratedMachine;

    public MachineDecorator(AgriculturalMachine machine) {
        this.decoratedMachine = machine;
    }

    @Override
    public void operate() {
        decoratedMachine.operate();
    }
}